/*lideng*/

@import "theme";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  position: relative;
  font-family: apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  //font-family: '黑体', Source Han Sans CN,PingFangSC-Regular,sans-serif,Helvetica Neue, Helvetica, Arial;
  line-height: 1.5;
  color: #323232;
  font-size: 16px;
}


@media screen and (min-device-width: 640px) {
  html {
    background-color: #f4f4f4;
  }
  body {
    max-width: 640px;
    font-size: 14px !important;
    margin: auto;
    //border: solid 1px red;
  }
  .van-tabbar--fixed,
  .van-nav-bar--fixed,
  .van-nav-bar__placeholder {
    margin: 0 auto;
    max-width: 640px;
    width: auto;
    left: 0;
    right: 0;
  }
}

body {
  background-color: $bgGray;
  margin: 0 auto;
}

.app {
  background-color: #fff;

  .van-button {
    border-radius: 6px;
  }

  .van-button--small,
  .van-button--mini {
    border-radius: 3px;
  }

  .van-button--info {
    background-color: $themeColor;
  }
}

.tabber-fixed {
  font-size: 16px;
  box-shadow: 1px 1px 4px #ddd;
  margin-top: 50px;
}

//@media screen and (min-width: 760px) {
//   body{
//      //border: solid 1px red;
//      @include body-maxWidth();
//      font-size: 14px;
//   }
//   //.tabber-fixed{
//   //   @include body-maxWidth();
//   //   left: calc(50% - 540px);
//   //}
//}

body * {
  box-sizing: border-box;
}

li {
  list-style: none;
}

a {
  color: #323232;
  cursor: pointer;
  text-decoration: none;
}

/*去除a点击之后的背景*/
a:active {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/*清楚浮动*/
.clearfix:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
}

input, button {
  border: none;
  outline: none;
}

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px white inset !important;
}

/*省略號*/
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ellipsis2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  &:hover {
    cursor: pointer;
  }
}

.iconfont {
  font-size: 16px;
}

.tl {
  text-align: left;
}

.tc {
  text-align: center;
}

.tr {
  text-align: right;
}

.tc {
  text-align: center;
}

.align-sc {
  align-self: center;
}

.marTop20 {
  margin-top: 20px;
}

.marTop40 {
  margin-top: 40px;
}

/*============ 初始样式 到此结束 ============*/
.tab-bgGray {
  .van-tabs__nav {
    background-color: $bgGray;
  }
}

.tab-theme {
  .van-tab {
    flex: inherit;

    .van-tab__text {
      padding: 0 6px;
      min-width: 50px;
      text-align: center;
    }
  }

  .van-tabs__line {
    background-color: $themeColor;
    width: 30px;
  }
}

.borderBtm {
  border-bottom: solid 1px #d5d2d5;
}

.van-tab--active {
  font-size: 18px;
  font-weight: bold;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
/*省略号*/
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  &:hover{
    cursor: pointer;
  }
}
/*环绕*/
.flex-between {
  display: flex;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex {
  display: flex;
}
.flex-align {
  display: flex;
  align-items: center;
}

#app {
  width: 100%;
  min-height: 100vh;
}

.full-width {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
}

.full-width92 {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.font12 {
  font-size: 12px;
}

.text-note {
  font-size: 12px;
  //padding-top: 20px;
  text-align: center;
  color: $colorGray;
}

.text-note2 {
  height: 40px;
  line-height: 40px;
}

.public-form {
  .van-cell {
    margin: 6px 0 10px;
    padding: 0;

    .van-field__body {
      background-color: #f6f5f8;
      border-radius: 6px;
      padding: 10px 16px;

      input:-webkit-autofill {
        /* -webkit-box-shadow: 0 0 0 280.11204vw white inset !important; */
        box-shadow: 0 0 0 280.11204vw #f6f5f8 inset !important;
      }
    }

    .van-field__error-message {
      padding-left: 16px;
      margin-top: 2px;
    }

  }

  .iconfont {
    margin-right: 4px;
  }
}

.public-form-label {
  .van-field__label {
    position: absolute;
    z-index: 11;
    top: 10px;
    left: 10px;
  }

  .van-field__body,
  .van-field__error-message {
    padding-left: 90px !important;
  }

  .van-cell::after {
    border-bottom: 0;
  }
}

.btn-text {
  background-color: #fff;
  border: 0;
  color: $themeColor;
}

.btn-select {
  margin: 10px;

  &-content {
    display: flex;
  }

  &-name {
    text-align: left;
    min-width: 56px;
  }

  .iconfont {
    margin-left: 4px;
    font-size: 12px;
  }
}

.btn-wid92 {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.bg-inp {
  //background-color: #f6f5f8;
  margin-top: 4px;
  //border-radius: 6px;
}

.van-password-input__security li {
  background-color: #f6f5f8;
  border-radius: 6px;
}

.inp-label {
  font-weight: bold;
  margin: 10px 0;
}

.index-search {
  margin-top: -16px;
  padding: 0;
}

/*tabbar灰底 + 蓝框选中*/
.tab-deposit {
  .van-tab--active {
    font-size: 14px;
    font-weight: 300;

    .van-tab__text {
      background-color: #3365e3;
      color: #fff;
      padding: 2px 8px;
      border-radius: 2px;
    }
  }

  .van-tabs__line {
    display: none;
  }
}